package ibm;

/**
 * 测试虚拟机的GC
 * 	-XX:+PrintGCDetails -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=15 -Xms40M -Xmx40M -Xmn20M
 * @author Zhzhl
 *
 */
public class HeapGCTest {
	public static void main(String[] args) {
		byte[] b1 = new byte[1024 * 1024 / 2];
		byte[] b2 = new byte[1024 * 1024 * 8];
		b2 = null;
		b2 = new byte[1024 * 1024 * 8];//进行一次新生代 GC
		//System.gc();
	}
}
